﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006A1 RID: 1697
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetCurChallengeScRsp : IMessage<GetCurChallengeScRsp>, IMessage, IEquatable<GetCurChallengeScRsp>, IDeepCloneable<GetCurChallengeScRsp>, IBufferMessage
	{
		// Token: 0x170015DF RID: 5599
		// (get) Token: 0x06004C88 RID: 19592 RVA: 0x000D183F File Offset: 0x000CFA3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetCurChallengeScRsp> Parser
		{
			get
			{
				return GetCurChallengeScRsp._parser;
			}
		}

		// Token: 0x170015E0 RID: 5600
		// (get) Token: 0x06004C89 RID: 19593 RVA: 0x000D1846 File Offset: 0x000CFA46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetCurChallengeScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170015E1 RID: 5601
		// (get) Token: 0x06004C8A RID: 19594 RVA: 0x000D1858 File Offset: 0x000CFA58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetCurChallengeScRsp.Descriptor;
			}
		}

		// Token: 0x06004C8B RID: 19595 RVA: 0x000D185F File Offset: 0x000CFA5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurChallengeScRsp()
		{
		}

		// Token: 0x06004C8C RID: 19596 RVA: 0x000D1874 File Offset: 0x000CFA74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurChallengeScRsp(GetCurChallengeScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.curChallenge_ = ((other.curChallenge_ != null) ? other.curChallenge_.Clone() : null);
			this.lineupList_ = other.lineupList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004C8D RID: 19597 RVA: 0x000D18D1 File Offset: 0x000CFAD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurChallengeScRsp Clone()
		{
			return new GetCurChallengeScRsp(this);
		}

		// Token: 0x170015E2 RID: 5602
		// (get) Token: 0x06004C8E RID: 19598 RVA: 0x000D18D9 File Offset: 0x000CFAD9
		// (set) Token: 0x06004C8F RID: 19599 RVA: 0x000D18E1 File Offset: 0x000CFAE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170015E3 RID: 5603
		// (get) Token: 0x06004C90 RID: 19600 RVA: 0x000D18EA File Offset: 0x000CFAEA
		// (set) Token: 0x06004C91 RID: 19601 RVA: 0x000D18F2 File Offset: 0x000CFAF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurChallenge CurChallenge
		{
			get
			{
				return this.curChallenge_;
			}
			set
			{
				this.curChallenge_ = value;
			}
		}

		// Token: 0x170015E4 RID: 5604
		// (get) Token: 0x06004C92 RID: 19602 RVA: 0x000D18FB File Offset: 0x000CFAFB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<LineupInfo> LineupList
		{
			get
			{
				return this.lineupList_;
			}
		}

		// Token: 0x06004C93 RID: 19603 RVA: 0x000D1903 File Offset: 0x000CFB03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetCurChallengeScRsp);
		}

		// Token: 0x06004C94 RID: 19604 RVA: 0x000D1914 File Offset: 0x000CFB14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetCurChallengeScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.CurChallenge, other.CurChallenge) && this.lineupList_.Equals(other.lineupList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004C95 RID: 19605 RVA: 0x000D1978 File Offset: 0x000CFB78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.curChallenge_ != null)
			{
				num ^= this.CurChallenge.GetHashCode();
			}
			num ^= this.lineupList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004C96 RID: 19606 RVA: 0x000D19DB File Offset: 0x000CFBDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004C97 RID: 19607 RVA: 0x000D19E3 File Offset: 0x000CFBE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004C98 RID: 19608 RVA: 0x000D19EC File Offset: 0x000CFBEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.curChallenge_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.CurChallenge);
			}
			this.lineupList_.WriteTo(ref output, GetCurChallengeScRsp._repeated_lineupList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004C99 RID: 19609 RVA: 0x000D1A58 File Offset: 0x000CFC58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.curChallenge_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CurChallenge);
			}
			num += this.lineupList_.CalculateSize(GetCurChallengeScRsp._repeated_lineupList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004C9A RID: 19610 RVA: 0x000D1AC4 File Offset: 0x000CFCC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetCurChallengeScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.curChallenge_ != null)
			{
				if (this.curChallenge_ == null)
				{
					this.CurChallenge = new CurChallenge();
				}
				this.CurChallenge.MergeFrom(other.CurChallenge);
			}
			this.lineupList_.Add(other.lineupList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004C9B RID: 19611 RVA: 0x000D1B3D File Offset: 0x000CFD3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004C9C RID: 19612 RVA: 0x000D1B48 File Offset: 0x000CFD48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 58U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.lineupList_.AddEntriesFrom(ref input, GetCurChallengeScRsp._repeated_lineupList_codec);
					}
				}
				else
				{
					if (this.curChallenge_ == null)
					{
						this.CurChallenge = new CurChallenge();
					}
					input.ReadMessage(this.CurChallenge);
				}
			}
		}

		// Token: 0x04001E3C RID: 7740
		private static readonly MessageParser<GetCurChallengeScRsp> _parser = new MessageParser<GetCurChallengeScRsp>(() => new GetCurChallengeScRsp());

		// Token: 0x04001E3D RID: 7741
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001E3E RID: 7742
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04001E3F RID: 7743
		private uint retcode_;

		// Token: 0x04001E40 RID: 7744
		public const int CurChallengeFieldNumber = 5;

		// Token: 0x04001E41 RID: 7745
		private CurChallenge curChallenge_;

		// Token: 0x04001E42 RID: 7746
		public const int LineupListFieldNumber = 7;

		// Token: 0x04001E43 RID: 7747
		private static readonly FieldCodec<LineupInfo> _repeated_lineupList_codec = FieldCodec.ForMessage<LineupInfo>(58U, LineupInfo.Parser);

		// Token: 0x04001E44 RID: 7748
		private readonly RepeatedField<LineupInfo> lineupList_ = new RepeatedField<LineupInfo>();
	}
}
